package com.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bean.AbstractBean;

public abstract class AbstractAction {
	
	private AbstractBean bean;
	
	public abstract String doAction(HttpServletRequest req,HttpServletResponse res);
	
	public void next(){
		bean.next();
	}
	
	public void previous(){
		bean.previous();
	}

	public void last(){
		bean.last();
	}
	
	public void first(){
		bean.first();
	}
	
	public void setBean(AbstractBean b){
		bean =b;
	}
	
}
